package com.roc.steelend.service.Impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.roc.steelend.mapper.WarehouseMapper;
import com.roc.steelend.pojo.Warehouse;
import com.roc.steelend.service.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class WarehouseServiceImpl  implements WarehouseService {
    @Autowired
    private WarehouseMapper warehouseMapper;

    @Override
    public List<Warehouse> findAllWareHouse() {
        QueryWrapper<Warehouse> wrapper = new QueryWrapper<>();
        wrapper.ne("warehouse_id",3);
        return warehouseMapper.selectList(wrapper);

    }
}
